package hu.tortavar2.client.place;

import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class SiteContentPlace extends MainPlace {

	private String siteContent;
	
	public SiteContentPlace(String token) {
		this.siteContent = token;
	}
	
	public String getSiteContent() {
		return siteContent;
	}
	
	@Prefix("site")
	public static class Tokenizer implements PlaceTokenizer<SiteContentPlace> {

		@Override
		public SiteContentPlace getPlace(String token) {
			return new SiteContentPlace(token);
		}

		@Override
		public String getToken(SiteContentPlace place) {
			return place.getSiteContent();
		}
		
	}
}
